home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / oleo-1_4.lha / oleo-1.4 / vfprintf.c < prev    next >
C/C++ Source or Header  |  1993-05-21  |  981b  |  40 lines

  1. /*    Copyright (C) 1993 Free Software Foundation, Inc.
  2.  
  3. This program is free software; you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation; either version 2, or (at your option)
  6. any later version.
  7.  
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11. GNU General Public License for more details.
  12.  
  13. You should have received a copy of the GNU General Public License
  14. along with this software; see the file COPYING.  If not, write to
  15. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  16.  
  17.  
  18. #include <stdio.h>
  19. #include <varargs.h>
  20. #include "sysdef.h"
  21.  
  22. #ifdef __STDC__
  23. #undef NULL
  24. #endif
  25.  
  26. int
  27. vfprintf (fp, s, ap)
  28.      FILE *fp;
  29.      const char *s;
  30.      va_list ap;
  31. {
  32.   int len;
  33.  
  34.   len = _doprnt (s, ap, fp);
  35.   return (ferror (fp) ? EOF : len);
  36. }
  37.  
  38.  
  39.  
  40.